package com.loghead.interfaces
{
	import flash.display.InteractiveObject;
	
	public interface ITextViewer
	{
		function get text():String;
		
		function set text( newVal:String ):void;
		
		function getTextByLine( line:int ):String;
		
		function removeTextByLine( line:int ):void;
		
		function insertTextAtLine( text:String, line:int = 0 ):void;
		
		function get view():InteractiveObject;	
		
		function addHtmlLine( html:String ):void;	
		
		function get autoScrollEnabled():Boolean;
		
		function highlightText( target:String ):void
		
		function updateScroll():void;
		
		function setSelection( beginIndex:int, endIndex:int ):void;
		
		function getLineLength( lineIndex:int ):int;
		
		function getLineIndexOfChar( charIndex:int ):int;
		
		function get length():int;
		
		function refreshView():void
		
		// autoScrollEnabled setter
		function set autoScrollEnabled( newVal:Boolean ):void;
	
		
	}
}